import request from '@/utils/request'



export function topicqueryAll(topicinput){
  return request({
    url: '/topicController/topicQueryAll',
    method: 'get',
    params: topicinput
  })
}

export function insertTopic(topicAddform){
  return request({
    url: '/topicController/topicAdd',
    method: 'post',
    params: topicAddform
  })
}

export function topicDelete(topicId){
  return request({
    url: '/topicController/topicDelete',
    method: 'post',
    params: topicId
  })
}

export function topicUpdate(topicUpdateform){
  return request({
    url: '/topicController/topicUpdate',
    method: 'post',
    params: topicUpdateform
  })
}

export function topicUpdateSels(topicId){
  return request({
    url: '/topicController/topicUpdateSel',
    method: 'get',
    params: topicId
  })
}